import QtQuick
import QtQuick.Controls
import QtQuick3D
import QtQuick3D.Physics

import QtQuickRO

import "../EventBus"
import "../CharacterModel"
import "../Actors"

TPSCharactor{
    id:root
    visible: true

    property alias rightHandProp :rightHandProp

    capsuleHeight:120
    capsuleDiameter: 50

    receiveTriggerReports: true

    Node{
        id:characterModel
        parent:root.bodyBase

        Steve{
            //主角模型
            id:model
            movement: root.movement
            handled: rightHandProp.source.length === 0?false:true
        }
    }

    PropHandler{
        id:rightHandProp
        parent:model.rightHand
        //source:EventBus.getResource("Actors/Pickaxe.qml")

        ROExportProperty{//将手持道具的source变为共享属性
            target: rightHandProp
            properties: ["source"]
        }
    }

    Node {
        id: __materialLibrary__
    }
}
